import axios from '@/libs/request'
/**
 * 确诊人员
 */
// 插入
export const insert = (data) => {
  return axios.request({
    url: 'api/ac/cme2/indexCasetrendService/insert',
    data: data,
    type: 'post'
  })
}
// 删除
export const deleteRequest = (data) => {
  return axios.request({
    url: 'api/ac/cme2/indexCasetrendService/delete',
    data: data,
    type: 'post'
  })
}
// 查询单条确诊人员个人信息
export const getById = (data) => {
  return axios.request({
    url: 'api/as/cme2/indexCasetrend/get',
    data: data,
    type: 'get'
  })
}
// 修改单条确诊人员个人信息
export const update = (data) => {
  return axios.request({
    url: 'api/ac/cme2/indexCasetrendService/update',
    data: data,
    type: 'get'
  })
}
// 分页查询
export const findPageList = ({ pageNo, pageSize }) => {
  return axios.request({
    url: 'api/ac/cme2/indexCasetrendService/findPageList',
    data: { pageNo, pageSize },
    type: 'get'
  })
}
// 全部
export const findList = () => {
  return axios.request({
    url: 'api/ac/cme2/indexCasetrendService/findList',
    data: {},
    type: 'get'
  })
}
// 提报
export const updateDeptCommitStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/indexCasetrendService/updateDeptCommitStatus',
    data: data,
    type: 'post'
  })
}
// 驳回
export const updateDeptRejectStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/indexCasetrendService/updateDeptRejectStatus',
    data: data,
    type: 'post'
  })
}
export const updateDeptAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indexCasetrendService/updateDeptAuditStatus',
    data: data,
    type: 'post'
  })
}
export const updateLeaderAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indexCasetrendService/updateLeaderAuditStatus',
    data: data,
    type: 'post'
  })
}
